package com.yanqu.sync.demo.dispatcher;

import com.yanqu.sync.demo.entity.Response;

import java.util.concurrent.CompletableFuture;

public class Result extends CompletableFuture<Response> {


    private CompletableFuture<Response> completableFuture = new CompletableFuture<>();

    public Result() {
    }

    public void done(Response response) {
        this.complete(response);
    }

    public CompletableFuture<Response> getFuture() {
        return completableFuture;
    }

}
